#pragma once

#include <iostream>
#include <string>
#include "../publicextern.h"
#include "../GameLog.h"
#include "base64_.h"
#include "../TCP/Reply.h"

class ThirdGames
{
public:
	ThirdGames();
	~ThirdGames();

	void ThirdGamesDataHandling(CReply& reply, DL_AES& dlAes, SOCKET socket);

	bool SaveGameInfo();

private:

	bool SaveSdkDataToIni(std::string appkey, std::string uname);

	int WriteConfig(std::string strPath, std::string strMain, std::string strKey, std::string strValue);

private:
	CBase64		base64;
	std::string sdkPath = "G://dalong//thirdPartyGameInfo.ini";
	std::string sdkMain = "common";

};

